/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.elka.gis.main.solvers;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import pl.elka.gis.main.helper.EdgesHelper;
import pl.elka.gis.main.node.Edge;
import pl.elka.gis.main.node.Node;

/**
 *
 * @author looser
 */
public class FakeSolver implements ISolver {

    @Override
    public Set<Edge> solve(Map<String, Set<String>> nodesMap) {
        Set<Edge> edges = EdgesHelper.getAllEdges(nodesMap);
        for(Edge e:edges){
            Integer randomColor = (int)Math.round(Math.random()*10);
            e.setColor(randomColor);
        }
        return edges;
    }

}
